module.exports = class extends think.Logic {
  getAction () {
    this.allowMethods = 'POST'
    this.rules = {
      card_id: {required: true, string: true}
    }
  }
  listAction () {
    this.allowMethods = 'POST'
    this.rules = {
      offset: {required: true, int: true, default: 0},
      count: {required: true, int: true, default: 20},
      status_list: {required: true, array: true, default: []}
    }
  }
  updateAction () {
    this.allowMethods = 'POST'
    this.rules = {
      card_id: {required: true, string: true}
    }
  }
}
